import 'package:changxindianzishangwu/cache/local_cache.dart';
import 'package:changxindianzishangwu/http/base/ec_base_request.dart';
import 'package:changxindianzishangwu/http/request/emoji_list_request.dart';
import 'package:changxindianzishangwu/http/zd_net.dart';
import 'package:changxindianzishangwu/model/collect_list_model.dart';

class EmojiListDao {
  static getEmojiList(String userId,
      {int pageIndex = 1, int pageSize = 20}) async {
    EcBaseRequest request = EmojiListRequest();
    request
        .add("userId", userId)
        .add("pageIndex", pageIndex)
        .add("pageSize", pageSize)
        .add("access_token", getAppLoginToken());
    var result = await ZdNet.getInstance().send(request);

    CollectListModel collectListModel = CollectListModel.fromJson(result);
    return collectListModel;
  }
}
